<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"/>
    <!--client js代码-->
    <script src="/static/js/client.js"></script>
    <title>客户管理</title>
</head>
<body>
<%--数据表格--%>
<table id="client_datagrid">
</table>

<%--client_toolbar工具框--%>
<div id="client_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true"
       data-cmd="add">新增</a>
    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"
       data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" iconCls="icon-remove" plain="true"
       data-cmd="remove">删除</a>
    <a id="state_btn" class="easyui-linkbutton" iconCls="icon-signing" plain="true"
       data-cmd="signing">签约</a>
    <a class="easyui-linkbutton" iconCls="icon-reload" plain="true"
       data-cmd="reload">刷新</a>
    <a class="easyui-linkbutton" iconCls="icon-look" plain="true"
       data-cmd="look">查看</a>
    <a class="easyui-linkbutton" iconCls="icon-export" plain="true"
       data-cmd="exportExl">导出</a>

    <%--模糊查询--%>
    <input id="keyword" class="easyui-textbox" prompt="请输入地址查询">

    <%--根据学科查询--%>
    &nbsp;意向学科<input id="subjectName" class="easyui-combobox" data-options="panelHeight:'auto',
            url:'/systemDictionaryItem/getItemBySn.do?sn=subject',
                               valueField:'name',textField:'name'" prompt="意向学科">

    <a class="easyui-linkbutton" iconCls="icon-search" plain="true"
       data-cmd="query">查询</a>
</div>

<%--弹出框--%>
<div id="client_dialog" align="center">
    <form id="client_form" method="post">
        <input type="hidden" name="id" id="clientId">
        <table align="center" style="margin-top: 50px">
            <tbody>
            <tr>
                <td>学校名称:</td>
                <td><input name="school.id" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/school/list.do',
                               valueField:'id',textField:'name'"></td>
                <td>电话:</td>
                <td><input name="tel" class="easyui-textbox"
                           prompt="请输入电话"></td>

                <td>地址:</td>
                <td><input name="address" class="easyui-textbox"
                           prompt="请输入地址"></td>
            </tr>
            <tr>
                <td>意向程度:</td>
                <td><input name="wantedLevel" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/systemDictionaryItem/getItemBySn.do?sn=wantedLevel',
                               valueField:'name',textField:'name'"></td>

                <td>意向学科:</td>
                <td><input name="subject" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/systemDictionaryItem/getItemBySn.do?sn=subject',
                               valueField:'name',textField:'name'"></td>

                <td>重要程度:</td>
                <td><input name="importance" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/systemDictionaryItem/getItemBySn.do?sn=importance',
                               valueField:'name',textField:'name'"></td>
            </tr>
            <tr>
                <td>联系人:</td>
                <td><input name="contact.id" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/contact/list.do',
                               valueField:'id',textField:'name'"></td>

                <td>营销人员:</td>
                <td><input name="saleman.id" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/employee/list.do',
                               valueField:'id',textField:'username'"></td>

                <td>跟进人员:</td>
                <td><input name="followupman.id" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/employee/list.do',
                               valueField:'id',textField:'username'"></td>
            </tr>
            <tr>
                <td>上次跟进时间:</td>
                <td><input name="beforedate" class="easyui-datebox"></td>

                <td>下次跟进时间:</td>
                <td><input name="afterdate" class="easyui-datebox"></td>

                <td>跟进状态:</td>
                <td><input name="followstate" class="easyui-combobox"
                           data-options="panelHeight:'auto', valueField:'value',textField:'text',
                        data:[{text:'已跟进',value:'1'},{text:'未跟进',value:'0'}]"></td>
            </tr>
            <tr>
                <td>客户状态:</td>
                <td><input name="state" class="easyui-combobox"
                           data-options="panelHeight:'auto', valueField:'value',textField:'text',
                        data:[{text:'已签约',value:'1'},{text:'未签约',value:'0'}]"></td>
            </tr>
            <tr align="left">
                <td><span>备注:</span></td>
                <td colspan="6" align="left"><input type="textarea" name="remark"
                                                    style="height: 50px;width: 650px"/>
                </td>
            </tr>
            <tr align="left">
                <td><span>简介:</span></td>
                <td colspan="6" align="left"><input type="textarea" name="info" style="height: 50px;width: 650px"/>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>
